package com.wunong.smart.webapp.configuration;

import com.wunong.smart.domain.component.lock.DistributeLock;
import com.wunong.smart.domain.component.lock.impl.DegradeDistributeLock;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author created by zealot.zt
 */
@Configuration
public class AppStartConfiguration {

    @Bean
    public DistributeLock distributeLock() {
        return new DegradeDistributeLock();
    }

}
